{{include template('public/header','admin')}}
<body>
    <div id="page-wrapper">
        <div class="row">
            <div class="col-lg-12">
                <div class="page-header">
                    <h3>{{L('urlrule')}}</h3>
                    <div class="opt-btn">
                        <a href="javascript:;" onclick="layer_open('添加URL规则', '/admin/urlrule/add', '800', '450')"  class="btn btn-primary bar-btn" style="text-decoration:none">添加URL规则</a>
                    </div>
                </div>
                <div class="search">

                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-lg-12">
                <form method="post" action="/admin/urlrule/batchremove" class="form-inline" role="form">
                    <table id='UrlruleList' class="table table-condensed table-hover table-striped tablesorter table-fixed table-selectable">
                        <thead>
                            <tr>
                                <th style="width: 15px;">
                                    <input type="checkbox" name="chk" class="checkbox" onclick="checkAll('prefix', this.form, 'ids', 'chk')" />
                                </th>
                                <th>{{L('urlrule_name')}}</th>
                                <th>{{L('urlrule_urlrule')}}</th>
                                <th>{{L('urlrule_route')}}</th>
                                <th>{{L('edit')}}</th>
                            </tr>
                        </thead>
                        <tbody>
                            {{foreach $items as $item}}
                            <tr>
                                <td><input type="checkbox" class="checkbox" name="ids[]" value="{{$item.urlruleid}}" /></td>
                                <td >{{$item.name}}</td>
                                <td >{{$item.urlrule}}</td>
                                <td >{{$item.route}}</td>
                                <td style="width: 15%">
                                    <a href="javascript:;" onclick="layer_open('编辑表单', '/admin/urlrule/update/?id={{$item.urlruleid}}', '800', '450')"  class="btn btn-warning btn-xs" style="text-decoration:none">修改</a>
                                    <a href="javascript:;" onclick="layer_del('/admin/urlrule/delete/?id={{$item.urlruleid}}')"  class="btn btn-danger btn-xs" style="text-decoration:none">删除</a>
                                </td>
                            </tr>
                            {{/foreach}}
                        </tbody>
                        <tr>
                            <td colspan="15">
                                <div class="form-inline " style="text-align: left;">
                                    <div  style="float: left;">
                                        <input type="checkbox" name="chkall" class="checkbox" onclick="checkAll('prefix', this.form, 'ids')" />{{L('chkall')}}
                                        <input type="radio" class="radio" id="optype_outer" name="optype" value="del" />{{L('delete')}}
                                        <input type="submit" class="btn" name="sendsubmit" value="{{L('submit')}}" />
                                    </div>
                                    <div  style="float:right;">
                                        {{include template('public/page','admin')}}
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                </form>
            </div>
        </div>
    </div>
</body>
</html>
